#define _CRT_SECURE_NO_WARNINGS	

#include<stdio.h>

int main()
{
    int x, y, z;
    scanf("%d%d%d", &x, &y, &z);
    int max = (x > y) ? x : y;
    max = (max > z) ? max : z;
    int min = (x < y) ? x : y;
    min = (min < z) ? min : z;
    printf("%d %d %d", min, x + y + z - min - max, max);
    return 0;
}